package com.example.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * @author luo
 */
@Data
public class RewardPunish implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String name;
    private String content;
    private double wages;
    private Integer category;

    public void setStatus(Integer category){
        this.category = category;
    }
    public String getStatus(){
        if (category==0){
            return "奖励";
        }else {
            return "惩罚";
        }
    }
}
